RequireJS is a JavaScript file and module loader. Using a modular script loader like RequireJS will improve the speed and quality of your code.
RequireJS starts with three great benefits for web applications.
- Properly sequence the scripts
- Reduce the number of requests made to load scripts (only one or a very small number of requests)
- Optimize by combining the JavaScript files together and minifying it
With RequireJS, it’s easy to load code on the fly, after page load.
RequireJS can help you manage the script modules, load them in the right order, and make it easy to combine the scripts later via the RequireJS optimizer without needing to change your markup. It also gives you an easy way to load scripts after the page has loaded, allowing you to spread out the download size over time.
We decided to use RequireJS in our next projects (including client projects we are working on).
We develop web applications using Open Source technologies like PHP, MySQL and Ajax (jQuery) etc. If you need to build a web application for your business, please contact us.
At Indibits, we always interested to work on interesting web applications using interesting open source technologies. If you would like to be a part of the interesting team at Indibits, please apply.
I have bad experience with such scripts, which minify your JS files, as the application features die, when all the JS are combined together with a cached one single JS file.
But I have seen it working nicely on many sites as well.